import request from '@/utils/request';
// 获取体检服务列表
export function checkList(patientId) {
  return request({
    url: `/patients/${patientId}/mecService`,
    method: 'get'
  });
}

// 发送体检卡
export function sendSMS(productId) {
  return request({
    url: `/hd/medicalExaminationCards/send`,
    method: 'post',
    data: {
      productId
    }
  });
}

// 绑定体检卡
export function binding(data) {
  return request({
    url: `/hd/medicalExaminationCards/binding`,
    method: 'post',
    data
  });
}

// 获得支付二维码
export function payQrCodeSign(insuranceOrderId) {
  return request({
    url: `/patients/insurance_order/${insuranceOrderId}/payQrCodeSign`
  });
}

// 会员服务订单支付
export function insurancePay({ patient_id, insurance_order_id, params }) {
  return request({
    url: `/patients/${patient_id}/insurance_orders/${insurance_order_id}/pay`,
    data: params,
    method: 'post'
  });
}
